<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>emp-toolkit: OTNP Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-full-doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">emp-toolkit
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_o_t_n_p.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_o_t_n_p-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">OTNP Class Reference<div class="ingroups"><a class="el" href="group___o_t.html">Oblivious Transfer</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="np_8h_source.html">np.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for OTNP:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_o_t_n_p.png" usemap="#OTNP_map" alt=""/>
  <map id="OTNP_map" name="OTNP_map">
<area href="class_o_t.html" alt="OT&lt; OTNP &gt;" shape="rect" coords="0,0,87,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae1478826c797d7af4505c63be95e2834"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_o_t_n_p.html#ae1478826c797d7af4505c63be95e2834">OTNP</a> (<a class="el" href="class_net_i_o.html">NetIO</a> *<a class="el" href="class_o_t.html#a66a5cf62a5b5707e2af40719b2005340">io</a>)</td></tr>
<tr class="separator:ae1478826c797d7af4505c63be95e2834"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1eb2d9931d7b74f17b1f4aca024e9729"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_o_t_n_p.html#a1eb2d9931d7b74f17b1f4aca024e9729">send_impl</a> (const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *data0, const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *data1, int length)</td></tr>
<tr class="separator:a1eb2d9931d7b74f17b1f4aca024e9729"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaac2cfa0f22a6cf5f57bd1cd60998678"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_o_t_n_p.html#aaac2cfa0f22a6cf5f57bd1cd60998678">recv_impl</a> (<a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *data, const bool *b, int length)</td></tr>
<tr class="separator:aaac2cfa0f22a6cf5f57bd1cd60998678"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_o_t"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_o_t')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_o_t.html">OT&lt; OTNP &gt;</a></td></tr>
<tr class="memitem:a3e2fa79624ad387e820e623dc1a300c4 inherit pub_methods_class_o_t"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_o_t.html#a3e2fa79624ad387e820e623dc1a300c4">OT</a> (<a class="el" href="class_net_i_o.html">NetIO</a> *nio)</td></tr>
<tr class="separator:a3e2fa79624ad387e820e623dc1a300c4 inherit pub_methods_class_o_t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9aba495825edbd502486e829dc45726 inherit pub_methods_class_o_t"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_o_t.html#aa9aba495825edbd502486e829dc45726">send</a> (const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *data0, const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *data1, int length)</td></tr>
<tr class="separator:aa9aba495825edbd502486e829dc45726 inherit pub_methods_class_o_t"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a074dc3db3ef5325dcdd4c8b33f6e9d90 inherit pub_methods_class_o_t"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_o_t.html#a074dc3db3ef5325dcdd4c8b33f6e9d90">recv</a> (<a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *data, const bool *b, int length)</td></tr>
<tr class="separator:a074dc3db3ef5325dcdd4c8b33f6e9d90 inherit pub_methods_class_o_t"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a5333e3a3665ba351d47400c3bbe6dfc6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_o_t_n_p.html#a5333e3a3665ba351d47400c3bbe6dfc6">cnt</a></td></tr>
<tr class="separator:a5333e3a3665ba351d47400c3bbe6dfc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81c6f652c7dde3a8d47c7f04e758e7ce"><td class="memItemLeft" align="right" valign="top">eb_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_o_t_n_p.html#a81c6f652c7dde3a8d47c7f04e758e7ce">g</a></td></tr>
<tr class="separator:a81c6f652c7dde3a8d47c7f04e758e7ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0d1e24d65f1fc1f0af785bbfb9e380d"><td class="memItemLeft" align="right" valign="top">eb_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_o_t_n_p.html#ad0d1e24d65f1fc1f0af785bbfb9e380d">C</a></td></tr>
<tr class="separator:ad0d1e24d65f1fc1f0af785bbfb9e380d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d7cce47607ffe280cb72159349baea7"><td class="memItemLeft" align="right" valign="top">const eb_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_o_t_n_p.html#a3d7cce47607ffe280cb72159349baea7">gTbl</a></td></tr>
<tr class="separator:a3d7cce47607ffe280cb72159349baea7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59519bb7ec8cea235602e05e53b2976b"><td class="memItemLeft" align="right" valign="top">bn_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_o_t_n_p.html#a59519bb7ec8cea235602e05e53b2976b">q</a></td></tr>
<tr class="separator:a59519bb7ec8cea235602e05e53b2976b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abcfccee46e6dfa46872239da1bdb8714"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_p_r_g.html">PRG</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_o_t_n_p.html#abcfccee46e6dfa46872239da1bdb8714">prg</a></td></tr>
<tr class="separator:abcfccee46e6dfa46872239da1bdb8714"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_class_o_t"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_class_o_t')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="class_o_t.html">OT&lt; OTNP &gt;</a></td></tr>
<tr class="memitem:a66a5cf62a5b5707e2af40719b2005340 inherit pub_attribs_class_o_t"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_net_i_o.html">NetIO</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_o_t.html#a66a5cf62a5b5707e2af40719b2005340">io</a></td></tr>
<tr class="separator:a66a5cf62a5b5707e2af40719b2005340 inherit pub_attribs_class_o_t"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ae1478826c797d7af4505c63be95e2834"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1478826c797d7af4505c63be95e2834">&sect;&nbsp;</a></span>OTNP()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">OTNP::OTNP </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_net_i_o.html">NetIO</a> *&#160;</td>
          <td class="paramname"><em>io</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aaac2cfa0f22a6cf5f57bd1cd60998678"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaac2cfa0f22a6cf5f57bd1cd60998678">&sect;&nbsp;</a></span>recv_impl()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void OTNP::recv_impl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const bool *&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a1eb2d9931d7b74f17b1f4aca024e9729"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1eb2d9931d7b74f17b1f4aca024e9729">&sect;&nbsp;</a></span>send_impl()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void OTNP::send_impl </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>data0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> *&#160;</td>
          <td class="paramname"><em>data1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ad0d1e24d65f1fc1f0af785bbfb9e380d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad0d1e24d65f1fc1f0af785bbfb9e380d">&sect;&nbsp;</a></span>C</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">eb_t OTNP::C</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a5333e3a3665ba351d47400c3bbe6dfc6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5333e3a3665ba351d47400c3bbe6dfc6">&sect;&nbsp;</a></span>cnt</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int OTNP::cnt</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a81c6f652c7dde3a8d47c7f04e758e7ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81c6f652c7dde3a8d47c7f04e758e7ce">&sect;&nbsp;</a></span>g</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">eb_t OTNP::g</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a3d7cce47607ffe280cb72159349baea7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d7cce47607ffe280cb72159349baea7">&sect;&nbsp;</a></span>gTbl</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const eb_t* OTNP::gTbl</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="abcfccee46e6dfa46872239da1bdb8714"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abcfccee46e6dfa46872239da1bdb8714">&sect;&nbsp;</a></span>prg</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_p_r_g.html">PRG</a> OTNP::prg</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a59519bb7ec8cea235602e05e53b2976b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59519bb7ec8cea235602e05e53b2976b">&sect;&nbsp;</a></span>q</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bn_t OTNP::q</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/Users/wangxiao/git/emp-toolkit/emp-ot/ot/<a class="el" href="np_8h_source.html">np.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_o_t_n_p.html">OTNP</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
